﻿using Moq;
using Nvigorate.Relational.Mapping;
using Nvigorate.Relational.Mapping.Index;

namespace Nvigorate.Test.Relational.Binding
{
    public abstract class BindingTestBase
    {
        protected IBindingMapLoader CreateBindingMapLoader(string dataSource)
        {
            var loader = new Mock<IBindingMapLoader>();
            loader.Expect(m => m.GetMap()).Returns(new BindingMap {RepositoryName = dataSource});
            return loader.Object;
        }
    }
}